package com.htd.htdapmservice.service.intf;

import com.htd.htdapmapi.alarm.request.AlarmInto;
import com.htd.htdapmapi.alarm.result.AlarmResult;
import com.htd.htdapmapi.common.CommonResult;
import com.htd.htdapmservice.request.SearchAlarmInto;
import com.htd.htdapmservice.result.ResponseAlarmInfo;
import com.htd.htdapmservice.result.SearchAlarmResult;

import java.util.List;

/**
 * 
 * Service层（接口）
 *
 */
public interface OneAlertService {

	/**
	 * 调用接口--获取认证
	 */
	CommonResult getAuthentication();
    
    
    /**
	 * 调用接口--创建告警API
	 */
     AlarmResult createAlarm(AlarmInto alarmInto);
    
    
    /**
   	 * 调用接口--查询我的告警
     * @return 
   	 */
     SearchAlarmResult searchAlarm(SearchAlarmInto searchAlarmInto);

	/**
	 * 调用接口--批量创建告警API
	 */
	public AlarmResult batchCreateAlarm(List<AlarmInto> alarmIntos);

	/**
	 *  根据cloudAlert的反馈，更新es、mysql的告警状态
	 * @return
	 */
	public CommonResult updateAlarmStatus(ResponseAlarmInfo responseAlarmInfo);
    
}
